from django.db import models
from datetime import datetime

# Create your models here.


# 平台用户
class PlaUserModel(models.Model):
    c_name = models.CharField('用户名',max_length=64,default='')
    password = models.CharField('密码',max_length=256,default='')
    portrait = models.CharField('头像',max_length=256,default='')
    establish_time = models.DateTimeField('创建时间', default=datetime.now())
    change_time = models.DateTimeField('更改时间', default=datetime.now())
    delete = models.BooleanField('是否删除 0否 1是', default=0)

    def __str__(self):
        return self.c_name

    class Meta:
        db_table = 'pla_user'
        verbose_name_plural = '顾客模型类'
